package com.study.spark.scala.chapter06

object Scala08_Object_Instance_3 {
  def main(args: Array[String]): Unit = {
    new User("zhangsan")
    /*
aaa
bbb
     */

  }

  class Person(s :String){
    println("aaa")
    def this(){
      this("lisi")
      println("ccc")
    }
  }
  class User(var name : String) extends Person(name) {

    println("bbb")
    def this(){
      this("wangwu")
      println("ddd")
    }
  }
}



